package p1.demo01;

public class Proxy implements  Rent {
    private Host host;

    public Proxy() {
    }

    public Proxy(Host host) {
        this.host = host;
    }

    @Override
    public void rent() {
        seehouse();
      host.rent();
      fare();
    }

    //附属操作
    //中介看房子
    public void seehouse(){
        System.out.println("中介带你去看房子");
    }
    //收中介费
    public void fare(){
        System.out.println("收取中介费");
    }
}
